﻿using System.Collections.Generic;
using System.Windows.Controls;
using System.Windows.Media;
using HeritageAcademy.Models.DataModels;
using HeritageAcademy.Models.Loaders;
using HeritageAcademy.Shared;
using HeritageAcademy.Models.ViewModels;

namespace HeritageAcademy.Window
{
	/// <summary>
	/// Interaction logic for ResultsScreenView.xaml
	/// </summary>
	public partial class ResultsScreenView
	{
		public ResultsScreenView()
		{
			this.InitializeComponent();
            DataContextChanged += new System.Windows.DependencyPropertyChangedEventHandler(ResultsScreenView_DataContextChanged);
		}

        void ResultsScreenView_DataContextChanged(object sender, System.Windows.DependencyPropertyChangedEventArgs e)
        {
            ResultsViewModel vm = (ResultsViewModel)DataContext;
            vm.GetTestResults();
        }
	}
}